package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.Carousel;
import com.llb666.e.shop.infrastructure.po.CarouselPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author llb666
 * @date 2022/7/8 18:44
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CarouselCvt {

    CarouselCvt INSTANCE = Mappers.getMapper(CarouselCvt.class);

    CarouselPo do2po(Carousel carousel);

    Carousel po2do(CarouselPo carouselPo);

    List<Carousel> po2doList(List<CarouselPo> carouselPoList);

}
